<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../vue.global.js"></script>
</head>

<body>
    <div id="two-way-binding">
        <p>{{ message }}</p>

        <!-- 双向数据绑定 -->
        <input v-model="message" />
    </div>
    <script>
        const TwoWayBinding = {
            data() {
                return {
                    message: '哈喽 2105'
                }
            }
        }

        Vue.createApp(TwoWayBinding).mount('#two-way-binding')
    </script>
</body>

</html>